<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/static/semantic.min.css">
    <style>
        .ui.segment.login{
            width: 800px;
            margin: 0 auto;
        }
        .cuowu{
            margin: 0 auto;
            color: red;
        }
    </style>
</head>
<body>
    {% if error %}
        <div class="ui segment cuowu">
            {{ error }}
        </div>
    {% endif %}
    <div class="ui center aligned segment">
        登录系统
    </div>

    <div class="ui segment login">
        <form class="ui form" action="/login/" method="post">
            <input type="text" class="ui input" name="user" placeholder="username">
            <input type="text" class="ui input" name="password" placeholder="password">
            <button class=" button">提交</button>
            {% csrf_token %}
        </form>
    </div>
</body>
</html>